<style>
.myinfo-main .myinfo-right .myprofile ul li .lab {
    text-align: right;
}
.myinfo-main .myinfo-right .myprofile ul li {
    width: 620px;
}
.myinfo-main .myinfo-right .myprofile ul li .inp {
    margin-left: 10px;
}
.submit-btn {
    margin-left: 200px;
}
</style>
<div class="myinfo-main">
	
	<div class="myinfo-right">
		<div class='myprofile'>
			<p class='title'>&nbsp;&nbsp;My Information</p>
			<?php
			$form=$this->beginWidget('application.components.widgets.CActiveFormPlus', array(
				'id'=>'register-form',
				'enableAjaxValidation'=>true,
				'enableClientValidation' => true,
				'clientOptions' => array(
					'validateOnSubmit' => true,
				),
			)); 
		?>
			<ul class='info-left'>
				<li>
					<?php echo $form->label($model,'First Name',array("class"=>"lab")); ?>
					<span class="inp"><?php echo $form->textField($model,'first_name',array('size'=>20,'maxlength'=>20,'class'=>'form-control')); ?></span>
					<?php echo $form->error($model,'first_name'); ?>
				</li>
				<li>
					<?php echo $form->label($model,'Last Name',array("class"=>"lab")); ?>
					<span class="inp"><?php echo $form->textField($model,'last_name',array('size'=>20,'maxlength'=>20,'class'=>'form-control')); ?></span>
					<?php echo $form->error($model,'last_name'); ?>
				</li>
				<li>
					<?php echo $form->label($model,'Address',array("class"=>"lab")); ?>
					<span class="inp"><?php echo $form->textField($model,'address',array('size'=>20,'maxlength'=>20,'class'=>'form-control')); ?></span>
					<?php echo $form->error($model,'address'); ?>
				</li>
				<li>
					<?php echo $form->label($model,'City',array("class"=>"lab")); ?>
					<span class="inp"><?php echo $form->textField($model,'city',array('size'=>20,'maxlength'=>20,'class'=>'form-control')); ?></span>
					<?php echo $form->error($model,'city'); ?>
				</li>
				<li class="zip">
					<?php echo $form->label($model,'Zip Code',array("class"=>"lab")); ?>
					<span class="inp"><?php echo $form->textField($model,'zip_code',array('size'=>20,'maxlength'=>20,'class'=>'form-control')); ?></span>
					<?php echo $form->error($model,'zip_code'); ?>
				</li>
				<li class="zip">
					<?php echo $form->label($model,'Phone',array("class"=>"lab")); ?>
					<span class="inp"><?php echo $form->textField($model,'phone',array('size'=>20,'maxlength'=>20,'class'=>'form-control')); ?></span>
					<?php echo $form->error($model,'phone'); ?>
				</li>
				<li>
					<?php echo $form->label($model,'Date Of Birth',array("class"=>"lab")); ?>
					<span class="inp">
					<?php echo $form->dateTimeFieldJs($model,'birthday',array(
	                'timeFormat'=>'HH:mm:ss',
	                'changeYear'=>true,
	                'changeMonth'=>true,
	                'yearRange'=>'-100:+0',
	                'maxDate'=>'+0d',
	                'showTimepicker'=>false,
	            	),array(
	                'class'   => 'form-control',
                    'value'=>date('m/d/Y',$model->birthday),
	                // 'disabled' => $model->getScenario() == 'edit',
	           		 ))?></span><?php echo $form->error($model,'birthday'); ?>
				</li>
				<li>
					<?php echo $form->label($model,'State',array("class"=>"lab")); ?>
					<span class="inp"><?php //echo $form->textField($model,'states',array('size'=>20,'maxlength'=>20,'class'=>'form-control')); ?>
						<select name="CustomerInfo[states]">
				            <?php foreach ($states as $k => $v) {?>
				            <option value="<?php echo $v->id;?>"  <?php echo $model->states==$v->id?"selected":"" ;?> ><?php echo $v->name;?></option>
				            <?php }?>
						</select>
					</span>
						
					<?php echo $form->error($model,'states'); ?>
				</li>
				<?php echo CHtml::button('confirm',array('type' => 'submit','class' => 'btn submit-btn'))?>
			</ul>

			<?php $this->endWidget(); ?>
		</div>
		<!--
		<div class='myaddresses'>
			<p class='title'>&nbsp;&nbsp;My Addresses</p>
			<div class="address">
				<img src="" width="222" height="200">
				<img src="" width="222" height="200">
			</div>
		</div>
		-->
	</div>
</div>